package com.lottery.ruok.lottrey.retrofitModule.response;

import android.text.TextUtils;

import com.lottery.ruok.lottrey.utils.TimeUtil;

import java.util.List;

/**
 * Created by ASUS on 2017/7/31.
 */

public class GetPrizeHistroyResponse {

    /**
     * issue_no : 20170731058
     * prize_num : 4,8,6,2,7
     * created_at : 2017-07-31 15:41:10
     */

    private String issue_no;
    private String prize_num;
    private String created_at;
    private AttachedBean attached;
    private String time; //13:30:40  时分秒

    public AttachedBean getAttached() {
        return attached;
    }

    public void setAttached(AttachedBean attached) {
        this.attached = attached;
    }

    public String getIssue_no() {
        return issue_no;
    }

    public void setIssue_no(String issue_no) {
        this.issue_no = issue_no;
    }

    public String getPrize_num() {
        return prize_num;
    }

    public void setPrize_num(String prize_num) {
        this.prize_num = prize_num;
    }

    public String getCreated_at() {
        return created_at;
    }

    public void setCreated_at(String created_at) {
        this.created_at = created_at;
    }

    public String getTime(){
            if(TextUtils.isEmpty(time)){
                time = TimeUtil.parseCreateTime(created_at);
            }
        return time;
    }

    public static class AttachedBean {
        private List<String> color;
        private List<String> sx;

        public List<String> getColor() {
            return color;
        }

        public void setColor(List<String> color) {
            this.color = color;
        }

        public List<String> getSx() {
            return sx;
        }

        public void setSx(List<String> sx) {
            this.sx = sx;
        }
    }
}
